export default class ObjectUtil {
    /**
     * 从源对象向目标对象复制，仅复制目标对象有的属性
     *
     * @param source 源对象
     * @param target 目标对象
     */
    public static copy = (source: object, target: object) => {
        Object.keys(target).forEach((key) => {
            if (typeof source[key] !== 'undefined') {
                target[key] = source[key];
            }
        });
    };
}
